<?php
namespace app\car\api;
use think\Controller;
use think\Request;

class Report extends Controller
{
    /**
     * 拼车举报
     * http://api.ybcpq.cn/car/report/carReport
     */
    public function carReport()
    {
        $data = input("post.");

        $model = model("Report");
        $res = $model->carReport($data);

        if($res !== false){
            $result = array('code'=>SUCCESS,'msg'=>'Success','data'=>'');
        }else{
            $result = array('code'=>ERROR,'msg'=>'Error','data'=>'');
        }
        return json($result);
    }
}